package com.cn.mmd.mapper;

import com.cn.mmd.model.TeacherRanking;
import com.cn.mmd.model.TeacherRankingExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface TeacherRankingMapper {
    int countByExample(TeacherRankingExample example);

    int deleteByExample(TeacherRankingExample example);

    int deleteByPrimaryKey(String teacherid);

    int insert(TeacherRanking record);

    int insertSelective(TeacherRanking record);

    List<TeacherRanking> selectByExample(TeacherRankingExample example);

    TeacherRanking selectByPrimaryKey(String teacherid);

    int updateByExampleSelective(@Param("record") TeacherRanking record, @Param("example") TeacherRankingExample example);

    int updateByExample(@Param("record") TeacherRanking record, @Param("example") TeacherRankingExample example);

    int updateByPrimaryKeySelective(TeacherRanking record);

    int updateByPrimaryKey(TeacherRanking record);

    List<TeacherRanking> selectAllAvg();

    int calculateTeacherRanking(String teacherId);
}